package cn.jingzhuan.element.demo.view.adapter

import android.content.Context
import android.support.v7.widget.RecyclerView
import android.widget.AbsListView
import android.widget.AdapterView
import android.widget.BaseAdapter

class PageRecyclerViewHolder(ctx: Context,val rootView: AbsListView)  : RecyclerView.ViewHolder(rootView) {

    fun bind(baseAdapter: BaseAdapter, onItemClickListener: AdapterView.OnItemClickListener) {
        rootView.adapter = baseAdapter
        rootView.onItemClickListener = onItemClickListener
    }

}